package com.ruoyi.common.core.domain.entity;

import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 省市区
 */
public class SysCityData extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    /** id */
    private Long id;

    /** pid */
    private Long pid;

    /** 省市区 */
    private String name;

    /** 子集市 */
    private List<SysCityData> children;

    /** 级别 */
    private String level;

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public void setId(Long id)
    {
        this.id = id;
    }
    public Long getId()
    {
        return id;
    }
    public void setPid(Long pid)
    {
        this.pid = pid;
    }
    public Long getPid()
    {
        return pid;
    }



    public void setName(String name)
    {
        this.name = name;
    }
    public String getName()
    {
        return name;
    }
    public List<SysCityData>  getChildren()
    {
        return children;
    }
    public void setChildren(List<SysCityData> children)
    {
        this.children = children;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("pid", getPid())
                .append("name", getName())
                .toString();
    }
}
